<?php
namespace App\Models\Content;

use App\Traits\DateTrait;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Attachment extends Model
{
    use SoftDeletes, DateTrait;
    protected $table = 'attachment';
    protected $fillable = ['user_id', 'group_id', 'file_name', 'path', 'suffix', 'type', 'storage', 'size'];

    public function group()
    {
        return $this->belongsTo(AttachmentGroup::class);
    }
}
